﻿using SmartRS.com.vn.smartrs.dao;
using SmartRS.com.vn.smartrs.domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartRS.com.vn.smartrs.service
{
    public class FoodOrderService : BaseService<FoodOrder>
    {
        private static FoodOrderService _foodOrderService = new FoodOrderService();

        private FoodOrderService()
        { }

        public static FoodOrderService getInstance()
        {
            return _foodOrderService;
        }

        public IList<FoodOrder> getListByBillId(long billId)
        {
            var result = FoodOrderDao.getInstance().getListByBillId(billId);
            return result;
        }
        public FoodOrder getFoodOrder(long billId, long foodId)
        {
            return FoodOrderDao.getInstance().getFoodOrder(foodId, billId);
        }
    }
}
